var util = require('we7/resource/js/util.js')
App({
  data: {
    path:
      'http://demo.yoois.com/app/index.php?i=18&c=entry&do=clockupload&m=maixun_wuxilvyou&logout=1',
    // imgpath: 'http://www.pengkai.com/attachment/',
    // iconpath: 'http://www.pengkai.com/'
    imgpath: 'http://demo.yoois.com/attachment/',
    iconpath: 'http://demo.yoois.com/'
  },
  openid: null,
  onLaunch: function(res) {},
  onShow: function(res) {},
  onHide: function() {},
  onError: function(msg) {
    console.log(msg)
  },
  //加载微擎工具类
  util: util,
  //导航菜单，微擎将会自己实现一个导航菜单，结构与小程序导航菜单相同
  //用户信息，sessionid是用户是否登录的凭证
  userInfo: {
    sessionid: null
  },
  globalData: {
    userInfo: null,
    final_step: 0,
    small_stars: 0,
    big_stars: 0,
    awardsConfig: {},
    runDegs: 0,
    showIndex: false,
    gloabalFomIds: []
  },
  tabBar: {
    color: '#999',
    selectedColor: '#f86b4f',
    borderStyle: '#fff',
    backgroundColor: '#fff',
    list: [
      {
        pagePath: '/maixun_demo/pages/store/index',
        iconPath: '/maixun_demo/resource/icon/home.png',
        selectedIconPath: '/maixun_demo/resource/icon/home-selected.png',
        text: '首页'
      },
      {
        pagePath: '/maixun_demo/pages/category/category',
        iconPath: '/maixun_demo/resource/icon/category.png',
        selectedIconPath: '/maixun_demo/resource/icon/category-selected.png',
        text: '分类'
      },
      {
        pagePath: '/maixun_demo/pages/home/index',
        iconPath: '/maixun_demo/resource/icon/user.png',
        selectedIconPath: '/maixun_demo/resource/icon/user-selected.png',
        text: '我的'
      }
    ]
  },
  siteInfo: require('siteinfo.js')
})
